package top.jiangqiang.qianyi.business.service;

import top.jiangqiang.qianyi.business.model.request.SysLogListRequest;
import top.jiangqiang.qianyi.business.model.request.SysLogPageRequest;
import top.jiangqiang.qianyi.business.model.response.SysLogDetailResponse;
import top.jiangqiang.qianyi.business.model.response.SysLogListResponse;
import top.jiangqiang.qianyi.business.model.response.SysLogPageResponse;
import top.jiangqiang.qianyi.common.base.model.response.PageResult;
import top.jiangqiang.qianyi.common.base.model.response.Result;
import top.jiangqiang.qianyi.common.base.service.BaseService;
import top.jiangqiang.qianyi.common.log.service.LogPersistenceService;
import top.jiangqiang.qianyi.data.model.entity.SysLog;
import top.jiangqiang.qianyi.data.service.SysLogDbService;

import java.util.List;

/**
 * <p>
 * 系统日志 服务类
 * </p>
 *
 * @author JiangQiang
 * @since 2024-06-03
 */
public interface SysLogService extends BaseService<SysLogDbService, SysLog>, LogPersistenceService {

    Result<PageResult<SysLogPageResponse>> page(SysLogPageRequest request);

    Result<List<SysLogListResponse>> list(SysLogListRequest request);

    Result<SysLogDetailResponse> detail(Long id);

    Result<Void> delete(Long id);

}
